$('#explanation').html('')
$("#notice").html('')

<% if @plugin.errors.any? %>
  $("#explanation").html("<%= escape_javascript(render :partial => 'error_explanation')%>")
<% else %>
  $("#notice").html('<%= escape_javascript(flash.delete(:notice)) %>');
<% end %>



